<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS的文字属性-font-weight</title>
    <style>
        *{font-size: 20px;}
        p{
            font-weight: 700;
        }
        div{
            font-weight: bold;
        }
    </style>
</head>
<body>
    <p>需要加粗的文字（数字）</p>
    <div>需要加粗的文字（单词）</div>
</body>
</html>